#!/bin/bash

set -e

vimrcPath=/etc/vim/vimrc

if [ -e $vimrcPath ];then
    sudo cp ./vimrc $vimrcPath -f
    echo "vim配置成功替换"
else
    echo "替换失败,文件不存在"
fi

exit